const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
      port: 8888,
			host: '0.0.0.0',
			https: false,	//是否启用ssl
    proxy: {
		//配置跨域
			[process.env.VUE_APP_BASE_URL]: {
			// '/dev-api': {
			target: "http://localhost:8080",
				ws: true,
				changOrigin: true,
				pathRewrite: {
					['^' + process.env.VUE_APP_BASE_URL] : '/'
				}
			}
		},
    }
})

